package com.crop.back.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * author Luge
 * description: $
 * param: $
 * return: $
 * date: $ $
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ProductRecordDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("分页参数")
    private Integer page = 1;

    @ApiModelProperty("单页大小")
    private Integer pageSize = 5;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("产品ID")
    private Long productId;

    @ApiModelProperty("产品名城")
    private String productName;

    @ApiModelProperty("温度")
    private BigDecimal temperature;

    @ApiModelProperty("最高温度")
    private BigDecimal highestTemperature;

    @ApiModelProperty("最低温度")
    private BigDecimal lowestTemperature;

    @ApiModelProperty("水分")
    private String moisture;

    @ApiModelProperty("生长情况")
    private String growthStatus;

    @ApiModelProperty("光照情况")
    private String lightCondition;

    @ApiModelProperty("备注")
    private String remarks;

    @ApiModelProperty("生长图片")
    private String imageUrl;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;

    @TableField("deleted")
    private Integer deleted;

}
